userName = "df"
passWord = "123456"

count = 0

while count <= 3:
    input_name = input("输入名字:")
    input_passwd = input("输入密码:")
    if input_name == userName and input_passwd == passWord:
        print("登录成功!")
        break
    else:
        print("用户名或密码错误！")
    count += 1

# 来个错误次数提示？